/*
 * @Author: Otway
 * @Date: 2019-01-09 11:16:08
 * @LastEditors: Otway
 * @LastEditTime: 2019-08-30 18:50:09
 * @copyright: h-visions
 */
import React, { PureComponent } from 'react';
// import { BasicPagination, isInvalidObject, compareNum, TableCustomize, openSuccessModal, openModalMessage, compareString } from '../../../components/TableCustomize'
// import * as CheckManagementService from '../../../axios/CheckManagement'
import {
    Row,
    Col,
    Form,
    // Select,
    // Layout,
    // List,
    // Button,
    // Pagination,
    Radio,
    // Input,
    Alert,
    // Spin
} from 'antd';
const FormItem = Form.Item;
// const { Header, Footer, Sider, Content } = Layout;
// const { Option } = Select

class AddFrom extends PureComponent {
    render() {
        const { form: { getFieldDecorator } } = this.props;
        const formItemLayout = {
            // 抽屉里面Form。二列的布局比例
            labelCol: {
                span: 8
            },
            wrapperCol: {
                span: 12
            }
        };

        return (
            <Form >
                <Row>
                    <Alert message="只是修正结果，记录的参数不会发生变化！" type="info" showIcon />
                </Row>
                <Row>
                    <Col span={24}>
                        <FormItem {...formItemLayout} label={'修改为'}>
                            {getFieldDecorator('checkResult', {
                                initialValue: '1',
                                rules: [
                                    {
                                        required: true,
                                        message: '请选择检验结果'
                                    }
                                ]
                            })(<Radio.Group onChange={this.onChange} >
                                <Radio value={"1"}><span style={{ color: '#95f204fe' }}>合格</span></Radio>
                                <Radio value={"2"}><span style={{ color: '#d9001bfa' }}>异常</span></Radio>
                            </Radio.Group>)}
                        </FormItem>
                    </Col>
                </Row>
            </Form>
        );
    }
}

export default Form.create()(AddFrom);
